d04be99186ceb12dee8d53eabc9c8f81935f766f,python/src/com/jetbrains/python/codeInsight/intentions/PyAnnotateTypesIntention.java,PyAnnotateTypesIntention,invoke,#Project#Editor#PsiFile#,75
Before Change
PyAnnotation annotation = ((PyNamedParameter)params[i]).getAnnotation();
if (annotation != null) {
PyExpression annotationValue = annotation.getValue();
builder.replaceElement(annotationValue, annotationValue.getText());
}
}
}
After Change
PyAnnotation annotation = ((PyNamedParameter)params[i]).getAnnotation();
if (annotation != null) {
PyExpression annotationValue = annotation.getValue();
if (annotationValue != null) {
builder.replaceElement(annotationValue, annotationValue.getText());
}
}
}